import request from '@/utils/request'


export function getAll(payload) {
  let time = Date.now();
  return request({
    url: `/admin/shops/?t=${time}&&id=${payload.id}&&size=${payload.size}&&current=${payload.current}`,
    method: 'get',
  })
}
export function addStu(data) {
  return request({
    url: "/admin/shops/",
    method: 'post',
    data
  })
}
export function dltStu(id) {
  return request({
    url: `/admin/shops/${id}`,
    method: 'delete'
  })
}
export function udtStu(id, data) {
  console.log(id,data);
  return request({
    url: `/admin/shops/${id}`,
    method: 'put',
    data
  })
}